//
//  TNImageView.m
//  WebPDA
//
//  Created by Justin Yip on 8/1/10.
//  Copyright 2010 TenNights.com. All rights reserved.
//

#import "SeatImageView.h"
#import "SeatGraphViewController.h"


@implementation SeatImageView

@synthesize seatDetailView;

- (id)initWithCoder:(NSCoder *)aDecoder {
	if (self = [super initWithCoder:aDecoder]) {
		UITapGestureRecognizer *tapGR = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tap)];
		[self addGestureRecognizer:tapGR];
		[tapGR release];
	}
	return self;
}

- (void)tap {
	seatDetailView.hidden = seatDetailView.hidden ? NO :YES;
}

/*
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
	if ([[touches anyObject] tapCount] == 2 && self.superview && self.superview.superview) {
		NSLog(@"send event to super super view");
		[self.superview.superview touchesBegan:nil withEvent:nil];
	}
	[super touchesBegan:touches withEvent:event];
}*/

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

- (void)dealloc {
	[seatDetailView release];
    [super dealloc];
}


@end
